package edu.shu.springmybatis.dao;


import edu.shu.springmybatis.beans.Account;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface AccountDao {

    @Select("select * from account where id = #{id}")
    public List<Account> findById(Account account);

    @Insert("insert into account(name,money) values(#{name},#{money})")
    public void insert(Account account);
}
